<?php

namespace core\traits;

use support\View;

trait ExtendView
{
    public function view(array $vars = [])
    {

        View::assign('template',   get_extend_path()
            . get_extend()
            . '/template/'
            . get_controller() . '/'
            . get_action() .
            '.php');

        return view('/template/admin/noframelayout', $vars, '', '');
    }
}
